﻿using System.Collections.Generic;

namespace netCoreStudy.Entities.Base
{
	public class PageRes<T>
	{
		/// <summary>
		/// 当前 第几页
		/// </summary>
		public int PageIndex { get; set; }
		/// <summary>
		/// 每页数量
		/// </summary>
		public int PageSize { get; set; }
		
		/// <summary>
		/// 总页数
		/// </summary>
		public int TotalCount { get; set; }
		
		/// <summary>
		/// 返回的列表实体
		/// </summary>
		public List<T> Data { get; set; }

		public PageRes(int pageIndex, int pageSize, int totalCount, List<T> data)
		{
			PageIndex = pageIndex;
			PageSize = pageSize;
			TotalCount = totalCount;
			Data = data;
		}
	}
}